extends "res://Scripts/core_attack.gd"

func _on_area_entered(area: Area2D) -> void:
    var Awaken = self.get_parent().get_parent().Aweakening
    #检测碰撞，发出信号
    if area.is_in_group("enemy") && Awaken:
        area.emit_signal("hurt", damage)
        queue_free()